package com.fsxgt.datagrid.console;

import java.io.IOException;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.fsxgt.datagrid.config.WinHadoopConfig;

@SpringBootApplication
@EnableConfigurationProperties
@EnableAutoConfiguration(exclude={
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,MongoAutoConfiguration.class
})
@EnableScheduling
@ComponentScan(basePackages = "com.fsxgt.datagrid")
@MapperScan({"com.fsxgt.datagrid.*.dao","com.fsxgt.datagrid.*.*.dao"})
public class Application {

	public static void main(String[] args) throws Exception {

		WinHadoopConfig.init();
		
		SpringApplication.run(Application.class, args);
	}

}
